<?php 

include './Core/function.php';

$db = include "./db.php";

$id = $_GET['id'];

if($id!=null){
	//销毁需要删除的对应信息
	unset($db[$id]);
	//判断是否已经被删除
	$str = var_export($db,True);
	$str = "<?php 
	return  ". $str ." 
	?>";
	file_put_contents('./db.php', $str);
	success('index.php',"留言已删除");
}else{
	error('index.php',"非法操作");
}

















 ?>